package scau.erps.service.impl;
import org.nutz.service.IdNameEntityService;

import scau.erps.entity.Store;
import scau.erps.service.StoreService;


/**
 * 原材料仓库实现类
 * @author outsider
 * 
 */
public class StoreServiceImpl extends IdNameEntityService<Store> implements StoreService{

	/**
	 * @author outsider
	 * 获取该队当前仓库的实例
	 */
	public Store getStoreByTeamId(int team_Id) {
		return this.dao().fetch(Store.class,team_Id);
	}

	/**
	 * @author outsider
	 * 更新某队仓库 因为数据库字段自带teamid故只传入store对象
	 */
	public void updateStoreByTeamId(Store store) {
		this.dao().update(store);
		
	}
	
}
